<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大事件后台管理系统</title>
    <link rel="stylesheet" href="./favicon.ico">
    <link rel="stylesheet" href="./assets/lib/css/login.css">
    <link rel="stylesheet" href="./assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="./assets/css/login.css">
</head>

<body>
    <div id="particles-js" style="display: flex;align-items: center;justify-content: center">
        <canvas class="particles-js-canvas-el" style="width: 100%; height: 100%;" width="472" height="625"></canvas>
    </div>
    <!-- 顶部logo -->
    <div class="logo layui-main">
        <img src="./assets/images/logo.png" alt="">
    </div>
    <!-- 注册登录区域 -->
    <div class="login_reg">
        <div class="title"></div>
        <!-- 登录区域 -->
        <div class="loginBox">
            <form class="layui-form" id="formlogin" action="">
                <div class="layui-form-item">
                    <i class="layui-icon  layui-icon-username"></i>
                    <input type="text" name="username" required value="fanyuqw" lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" required value="123123" lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <input type="submit" lay-submit class="layui-btn layui-btn-normal layui-btn-fluid" id="login"
                        value="登录">
                </div>
                <div class="layui-form-item"><a href="#">没有账号？去注册</a></div>
            </form>
        </div>
        <!-- 注册区域 -->
        <div class="regBox" style="display: none;">
            <form class="layui-form" id="formreg" action="">
                <div class="layui-form-item">
                    <i class="layui-icon  layui-icon-username"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="repassword" required lay-verify="required|repwd" placeholder="请确认密码"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <input type="submit" lay-submit class="layui-btn layui-btn-normal layui-btn-fluid" id="register"
                        value="注册">
                </div>
                <div class="layui-form-item"><a href="#">已有账号？去登录</a></div>
            </form>
        </div>
    </div>
</body>
<script src="./assets/lib/jquery.js"></script>
<script src="./assets/lib/axios.js"></script>
<script src="./assets/lib/js/login.js"></script>
<script src="./assets/lib/js/loginApp.js"></script>
<script src="./assets/lib/layui/layui.all.js"></script>
<script src="./assets/js/common.js"></script>
<script src="./assets/js/login.js"></script>
<script>
    function changeImg() {
        let pic = document.getElementById('picture');
        console.log(pic.src)
        if (pic.getAttribute("src", 2) == "img/check.png") {
            pic.src = "img/checked.png"
        } else {
            pic.src = "img/check.png"
        }
    }
</script>

</html>